import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/doctor'
    },
    {
      path: '/doctor',
      component: resolve => require(['@/components/doctor.vue'], resolve),
    },
    {
      path: '/examine',
      component: resolve => require(['@/components/examine.vue'], resolve),
    },
    {
      path: '/login',
      component: resolve => require(['../components/login.vue'], resolve)
    },
  ]
})
